package com.zb.spring5.ioc.entity;

import java.beans.PropertyEditorSupport;

/**
 * 自定义属性编辑类
 */
public class NamePropertyEditor extends PropertyEditorSupport {

    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        String[] name = text.split("\\s");
        setValue(new FullName(name[0],name[1]));
    }
}
